#include <stdio.h>
#include <math.h>

int main() {
    float P, Q;
    scanf("%f %f", &P, &Q);

    int res = -1;
    const double maxCoef = 100.0 / (double)P;
    const double minCoef = 100.0 / (double)Q;
    for(int k = 1;; ++k) {
        const double min = minCoef * k;
        const double max = maxCoef * k;
        res = floor(min) + 1;
        //printf("%f %f %d", min, max, res);
        if ((min < (double)res) && ((double)res < max))
            break;
    }

    printf("%d\n", res);

    return 0;
}

